﻿using GraphProcessor;
using IQIGame.Onigao.Logic;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.Prefab, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_Prefab : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.Prefab;

        [SkillEditorPrefabDropdown]
        public string prefabKey;
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_Prefab_ConfigData()
            {
                prefab = this.prefabKey
            };
            return rConfig;
        }
    }
}